/**
 * @Author YuanYuan
 * @Date 2022/7/24
 * @Time 10:55
 */
public class TestDemo {
    public static void func1(int[] arr) {
        arr = new int[10];
    }
    public static void func2(int[] arr) {
        arr[0] = 9;
    }
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5,6,7};
        func1(arr);
        for (int x: arr) {
            System.out.println(x);
        }
    }
}
